package elan.book.control;

import java.util.Random;

public class constant {
	// UIupdata_mode
	public static final int mode_autoUpdataUI = 0;
	public static final int mode_fontColor = 1;
	public static final int mode_fontSize = 2;
	public static final int mode_backgroudColor = 3;
	public static final int mode_backgroudImg = 9;
	public static final int mode_fullScreen = 4;
	public static final int mode_showTitle = 5;
	public static final int mode_showMenu = 6;
	public static final int mode_showBox = 7;
	public static final int mode_showBoxMenu = 8;
	
	public static final int title_title1 = 21;
	public static final int title_title2 = 22;
	public static final int title_timeUpdata = 23;
	// Config do not save
	public static boolean autoRoll = false;
	public static boolean threadRun=true;
	// Config need to save
	public static boolean firstUse=true;
	public static int fontColor;
	public static int fontSize;
	public static int backgroundColor;
	public static boolean fullScreen = true;
	public static int autoRollSpeed = 1;
	public static int autoRollFPS = 30;
	public static int autoRollTopBottomSleep = 5000;

	//internet
	public static final int READLENGTH = 1024;
	
	// init settings
	public static boolean initConstant() {

		return true;
	}

	// save settings
	public static boolean saveConstant() {
		return true;
	}

	public static int getRandomColor() {
		return getRadInt();
	}

	public static int getRadInt() {
		return new Random().nextInt();
	}
}
